import request from '@/utils/request'

// 查询工资发放总列表
export function listPayment(query) {
  return request({
    url: '/hr/payment/list',
    method: 'get',
    params: query
  })
}

// 查询工资发放总详细
export function getPayment(id) {
  return request({
    url: '/hr/payment/' + id,
    method: 'get'
  })
}
// 查询工资发放总详细
export function tbGzhs() {
  return request({
    url: '/hr/payment/tbGzhs',
    method: 'get'
  })
}

// 新增工资发放总
export function addPayment(data) {
  return request({
    url: '/hr/payment',
    method: 'post',
    data: data
  })
}

// 修改工资发放总
export function updatePayment(data) {
  return request({
    url: '/hr/payment',
    method: 'put',
    data: data
  })
}

// 删除工资发放总
export function delPayment(id) {
  return request({
    url: '/hr/payment/' + id,
    method: 'delete'
  })
}
